package org.jeecg.cn.edu.scau.vm.image.service;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import org.jeecg.cn.edu.scau.vm.image.domain.VmImage;
import org.jeecg.cn.edu.scau.vm.image.vo.VmImageListVo;

/**
 * 镜像类服务
 */
public interface VmImageService extends IService<VmImage> {
    VmImage getByImageId(String imageId);

    IPage<VmImageListVo> pageList(Page<VmImage> page, QueryWrapper<VmImage> queryWrapper);

    void saveImage(VmImage vmImage);

    IPage<VmImageListVo> pageListByStatus(Page<VmImage> page, Integer status);

    void submitReview(String id);

    void reviewPass(VmImage vmImage);

    void reviewReject(VmImage vmImage);


}
